//
//  TYZRadioGroup.h
//  VehicleInsuranceSupport
//
//  Created by TangBin on 2019/11/25.
//  Copyright © 2019 TangBin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TYZCheckButton.h"

NS_ASSUME_NONNULL_BEGIN

@protocol RadioGroupDelegate <NSObject>
@optional
- (void)selectedText:(NSString *)text index:(NSInteger)index;

@end

@interface TYZRadioGroup : NSObject
@property (readonly) NSString *text;
@property (readonly) id value;
@property (nonatomic, strong) id delegate;
@property (nonatomic, strong) NSMutableArray *children;
@property (nonatomic, assign) id<RadioGroupDelegate> rgDelegate;

- (void)add:(TYZCheckButton *)cb;
- (void)checkButtonClicked:(id)sender;
- (void)selectChecked:(int)arindex;
- (void)hidden:(BOOL)hidden;

/// 是否允许触摸事件
/// @param enabled enabled description
- (void)enableTouch:(BOOL)enabled;

@end

NS_ASSUME_NONNULL_END
